package com.org.oracle.controller;

import com.org.oracle.result.Result;
import com.org.oracle.service.TaskListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author heiye
 * @version 1.0
 * @data 2024/8/19 下午10:31
 */
@RestController
@RequestMapping("/taskList")
public class TaskListController {
    @Autowired
    private TaskListService taskListService;

    /**
     * 查询用户的每日任务表单
     */
    @GetMapping("/find")
    public Result findByUid(@RequestHeader("uid") String uid) {
        return Result.ok(taskListService.findByUid(uid));
    }
}
